import undetected_chromedriver as uc

# specify chromedriver version to download and patch
# this did not work correctly until 1.2.1
uc.TARGET_VERSION = 78

# or specify your own chromedriver binary to patch
undetected_chromedriver.install(
    executable_path='c:/users/user1/chromedriver.exe',
)

from selenium.webdriver import Chrome, ChromeOptions

opts = ChromeOptions()
opts.add_argument(f'--proxy-server=socks5://127.0.0.1:9050')
driver = Chrome(options=opts)
driver.get('目标网址')
